package admin.dao;

import admin.entity.Dome;
import common.utils.HibernateUtil;

import java.util.List;

public class DomeDaoImpl implements DomeDao {
    @Override
    public int addDome(Dome dome) {
        return HibernateUtil.add(dome);
    }

    @Override
    public List<Dome> selectDome(int page) {
        String hql = "from Dome group by id";
        return HibernateUtil.getSelect(page,hql);
    }
}
